| Conditions | 1 |
| Total Lines | 80 |
| Code Lines | 63 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | import React from 'react' |
||
| 14 | |||
| 15 | render() { |
||
| 16 | return ( |
||
| 17 | <Html lang="en"> |
||
| 18 | <Head> |
||
| 19 | <meta |
||
| 20 | name="viewport" |
||
| 21 | content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" |
||
| 22 | /> |
||
| 23 | <meta property="og:title" content="DeKal | Portfolio" /> |
||
| 24 | <meta property="og:type" content="website" /> |
||
| 25 | <meta |
||
| 26 | property="og:description" |
||
| 27 | content="Dekal's Portfolio and Blog" |
||
| 28 | /> |
||
| 29 | <meta |
||
| 30 | property="og:image" |
||
| 31 | content="https://phatho-folio.now.sh/images/cover-img.png" |
||
| 32 | /> |
||
| 33 | <meta |
||
| 34 | property="og:image:secure_url" |
||
| 35 | content="https://phatho-folio.now.sh/images/cover-img.png" |
||
| 36 | /> |
||
| 37 | <meta property="og:url" content="https://phatho-folio.now.sh/" /> |
||
| 38 | <meta property="og:site_name" content="DeKal Portfolio" /> |
||
| 39 | <meta property="og:image:alt" content="DeKal Portfolio" /> |
||
| 40 | <meta |
||
| 41 | name="google-site-verification" |
||
| 42 | content="ofwBFRuFL3aycSJjDcrhc8hWEPKuJ7LkNCLUrsB0Sj4" |
||
| 43 | /> |
||
| 44 | <meta name="robots" content="index,follow" /> |
||
| 45 | <meta name="googlebot" content="index,follow" /> |
||
| 46 | <meta name="theme-color" content="#ffffff" /> |
||
| 47 | <link rel="icon" href="/favicon.ico" /> |
||
| 48 | <link rel="apple-touch-icon" href="/icons/Icon-64.png" /> |
||
| 49 | <link |
||
| 50 | rel="preload" |
||
| 51 | href="fonts/ip/font/ip.woff" |
||
| 52 | as="font" |
||
| 53 | crossOrigin="" |
||
| 54 | /> |
||
| 55 | <link |
||
| 56 | href="/icons/Icon-32.png" |
||
| 57 | rel="icon" |
||
| 58 | type="image/png" |
||
| 59 | sizes="32x32" |
||
| 60 | /> |
||
| 61 | <link |
||
| 62 | href="/icons/Icon-64.png" |
||
| 63 | rel="icon" |
||
| 64 | type="image/png" |
||
| 65 | sizes="64x64" |
||
| 66 | /> |
||
| 67 | |||
| 68 | <link rel="canonical" href="https://phatho-folio.now.sh/" /> |
||
| 69 | <link rel="manifest" href="/manifest.json" /> |
||
| 70 | |||
| 71 | <script |
||
| 72 | async |
||
| 73 | defer |
||
| 74 | src="https://www.googletagmanager.com/gtag/js?id=UA-172952138-1" |
||
| 75 | /> |
||
| 76 | |||
| 77 | <script |
||
| 78 | dangerouslySetInnerHTML={{ |
||
| 79 | __html: ` |
||
| 80 | window.dataLayer = window.dataLayer || []; |
||
| 81 | function gtag(){dataLayer.push(arguments);} |
||
| 82 | gtag('js', new Date()); |
||
| 83 | |||
| 84 | gtag('config', 'UA-172952138-1'); |
||
| 85 | ` |
||
| 86 | }} |
||
| 87 | /> |
||
| 88 | </Head> |
||
| 89 | <body> |
||
| 90 | <Main /> |
||
| 91 | <NextScript /> |
||
| 92 | </body> |
||
| 93 | </Html> |
||
| 94 | ) |
||
| 99 |